package com.jinke.api.modules.third.shippo.model.response;

import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 创建订单
 */
@Data
public class ShippoLabelVO {

    private String object_state;
    private String status;
    private Date object_created;
    private Date object_updated;
    private String object_id;
    private String object_owner;
    private boolean test;
    private Rate rate;
    private String tracking_number;
    private String tracking_status;
    private String eta;
    private String tracking_url_provider;
    private String label_url;
    private String commercial_invoice_url;
    private List<String> messages;
    private String order;
    private String metadata;
    private String parcel;
    private Billing billing;
    private String qr_code_url;
    private String created_by;

    @Data
    public class Rate {

        private String object_id;
        private String amount;
        private String currency;
        private String amount_local;
        private String currency_local;
        private String provider;
        private String servicelevel_name;
        private String servicelevel_token;
        private String carrier_account;
    }
    @Data
    public class Billing {

        private List<String> payments;
    }
}
